<template>
    <div id="home">
      <today-commend title="今日推荐" :type="type[0]"></today-commend>
      <news-muisc title = '新歌推荐'></news-muisc>
      <SwperBanner ></SwperBanner>
      <ListNav title="音乐榜单"></ListNav>
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
      <today-commend title="热门歌单"  :type="type[1]"></today-commend>
    </div>
</template>

<script>
   import TodayCommend from '../components/TodayCommend'
   import NewsMuisc from '../components/NewsMuisc'
   import SwperBanner from '../components/SwperBanner'
   import ListNav from './muiscList/muisc_list_nav'
    export default {
        name: "home",
        data(){
          return{
            TodayUrl:'/v1/restserver/ting?method=baidu.ting.billboard.billList&type=2&size=6&offset=1',
            hotdayUrl:'/v1/restserver/ting?method=baidu.ting.billboard.billList&type=23&size=6&offset=1',
            type:[2,23]
          }
        },
        components:{
          TodayCommend,
          NewsMuisc,
          SwperBanner,
          ListNav
        }
    }
</script>

<style scoped>
  #home{
    background: #f8f8f8;
  }
</style>
